package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件信息业务对象 document
 *
 * @author ruoyi
 * @date 2024-06-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DocumentBo extends BaseEntity {

    /**
     * 文件id
     */
    @NotNull(message = "文件id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long documentId;

    /**
     * 文件长度
     */
    @NotBlank(message = "文件长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String docuLength;

    /**
     * 开始发送的时间
     */
    @NotNull(message = "开始发送的时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 接收完成的时间
     */
    @NotNull(message = "接收完成的时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;


}
